import Uxpass from './input/pass'
import UxBtnGroup from './btn/group'
import UxBtnText from './btn/text'
import UxTipInput from './input/tooltip'
import UxHeaderSearch from './header/search/src/main.vue'
const components = [
    Uxpass,
    UxBtnGroup,
    UxTipInput,
    UxBtnText
]
const install = (Vue: any) => {
    components.forEach((component: any) => {
        // console.log(component, component.options)
        Vue.component(component.options ? component.options.name : component.nema, component);
    });
    Vue.component("UxHeaderSearch", UxHeaderSearch);
};

if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}

export default {
    install,
    Uxpass,
    UxBtnGroup,
    UxTipInput,
    UxBtnText,
    UxHeaderSearch
}